#include "student.h"
#include <iostream>
#include <iomanip>
student::student(const string& r_name)
{
    name = r_name;
    id = student::stu_id++;
}
void student::setadd(const string &r_add)
{
    add = r_add;
}
void student::setcard(const string &r_card)
{
    card = r_card;
}

void student::setname(const string &r_name)
{
    name = r_name;
}
void student::setphone(const string &r_phone)
{
    phone = r_phone;
}
void student::setshuxue(int r_shuxue)
{
    shuxue = r_shuxue;
}
void student::setyingyu(int r_yingyu)
{
    yingyu = r_yingyu;
}
void student::setyuwen(int r_yuwen)
{
    yuwen = r_yuwen;
}

const string student::getadd()
{
    return add;
}
const string student::getcard()
{
    return card;
}
const string student::getname()
{
    return name;
}
const string student::getphone()
{
    return phone;
}
const int student::getshuxue()
{
    return shuxue;
}
const int student::getyuwen()
{
    return yuwen;
}
const int student::getyingyu()
{
    return yingyu;
}
const int student::getid()
{
    return id;
}
void student::show()
{
    std::cout<<"name:"<<name<<"\t\taddress:"<<add<<"\t\tid:"<<id<<std::endl
            <<"phone:"<<phone<<"\t\tcard:"<<card<<std::endl
            <<"yuwen:"<<yuwen<<"\t\tshuxue:"<<shuxue<<"\t\tyingyu:"<<yingyu<<std::endl;
}

int student::stu_id = 1;
